import request from '@/utils/request'

// 查询变压器部件列表
export function listNyTransformerAccount(query) {
  return request({
    url: '/energy/nyTransformerAccount/list',
    method: 'get',
    params: query
  })
}

// 查询变压器部件详细
export function getNyTransformerAccount(id) {
  return request({
    url: '/energy/nyTransformerAccount/' + id,
    method: 'get'
  })
}

// 新增变压器部件
export function addNyTransformerAccount(data) {
  return request({
    url: '/energy/nyTransformerAccount',
    method: 'post',
    data: data
  })
}

// 修改变压器部件
export function updateNyTransformerAccount(data) {
  return request({
    url: '/energy/nyTransformerAccount',
    method: 'put',
    data: data
  })
}

// 删除变压器部件
export function delNyTransformerAccount(id) {
  return request({
    url: '/energy/nyTransformerAccount/' + id,
    method: 'delete'
  })
}
